<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link href="${contextPath}/ureport/res/ureport-asserts/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name ="viewport" content ="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
    <title>J2eeFAST平台-Ureport2表报分享</title>
    <style type="text/css" id="_ureport_table_style">
        ${style}
    </style>
    <script src="${contextPath}/static/libs/jquery.min.js"></script>
    <script src="${contextPath}/static/libs/jquery-migrate.min.js"></script>
    <script type="text/javascript"  src="${contextPath}/static/config.js"></script>
    <script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/bootstrap.min.js"></script>
    <script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/Chart.bundle.min.js"></script>
    <script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/chartjs-plugin-datalabels.min.js"></script>
    <script type="text/javascript" src="${contextPath}/ureport/res/ureport-asserts/venderjs/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="${contextPath}/ureport/res/ureport/js/preview.bundle.js"></script>
</head>
<body style="margin:5px;">
#if($tools.show)
<div style="border:solid 1px #ddd;border-radius:5px;height:35px;width:100%;margin-bottom:5px;background:#f8f8f8">
    <div style="text-align:${reportAlign}">
        #if($tools.print)
        <button type="button" class="btn btn-default ureport-print" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="打印当前">
            <img src='${contextPath}/ureport/res/ureport/img/print2.svg' width="20px" height="20px"> 打印当前
        </button>
        #if( $pageAll)
        <button type="button" class="btn btn-default ureport-printAll" #if($pageIndex>0) data-pg="${totalPageWithCol}" #end style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="打印所有">
            <img src='${contextPath}/ureport/res/ureport/img/print3.svg' width="24px" height="24px"> 打印所有
        </button>
        #end
        #end
        #if($tools.pdfPrint)
        <button type="button" class="btn btn-default ureport-pdf-direct-print" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="PDF在线打印">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/pdf-direct-print.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.pdfPreviewPrint)
        <button type="button" class="btn btn-default ureport-pdf-print" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="PDF在线预览打印">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/pdf-print.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.pdf)
        <button type="button" class="btn btn-default ureport-export-pdf" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="导出PDF">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/pdf.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.word)
        <button type="button" class="btn btn-default ureport-export-word" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="导出WORD">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/word.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.excel)
        <button type="button" class="btn btn-default ureport-export-excel" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="导出EXCEL">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/excel.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.pagingExcel)
        <button type="button" class="btn btn-default ureport-export-excel-paging" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="分页导出EXCEL">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/excel-paging.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.sheetPagingExcel)
        <button type="button" class="btn btn-default ureport-export-excel-paging-sheet" style="display:inline-block;padding:0;background:#f8f8f8;border:none;margin:3px" title="分页分Sheet导出EXCEL">
            <img src='${contextPath}/ureport/res/ureport-asserts/icons/excel-with-paging-sheet.svg' width="20px" height="20px">
        </button>
        #end
        #if($tools.paging)
        #end
        #if($pageIndex>0)
        <span id='pagingContainer' style="font-size:14px;margin-left:1px;color:#337ab7">
			共<span id='totalPageLabel'>${totalPageWithCol}</span>页
			<select id="pageSelector" class="form-control" style="display:inline-block;width:inherit;font-size:13px;height:28px;margin-top:2px">
				#foreach($index in [1..$totalPageWithCol])
				<option>${index}</option>
				#end
			</select>
			<span id='pageLinkContainer'></span>
		</span>
        #end
    </div>
</div>
#end
<div id="_ureport_table" style="float:${reportAlign}">
    ${content}
</div>
<iframe name="_print_frame" width="0" height="0" frameborder="0" src="about:blank"></iframe>
<iframe name="_print_pdf_frame" width="0" height="0" frameborder="0" src="about:blank"></iframe>
<script type="text/javascript">
    window._server="${contextPath}/ureport";
    window.formElements=[];
    $(document).ready(function(){
        var totalPageWithCol = 0;
        var pageIndex = 0;
        #if( $totalPageWithCol)
        totalPageWithCol = ${totalPageWithCol};
        #end
        #if( $pageIndex)
        pageIndex = ${pageIndex};
        #end

        buildPaging(pageIndex,totalPageWithCol);

        #if($intervalRefreshValue>0)
        _intervalRefresh($intervalRefreshValue,$totalPageWithCol);
        #end

        #if( $chartDatas)
        _buildChartDatas(${chartDatas});
        #end

        #if( $error)
        __clearLockhost();
        #end

        ${searchFormJs}
        #if( $file)
        function doSearch(){
            submitSearchForm("${file}","${customParameters}");
        }
        #end

        #if($watermark.length()>0)
        _watermark(window,{"watermark_txt":"${watermark}"})
        #end
    });
</script>
</body>
</html>